

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class LeftTitleRightImageButton extends StatelessWidget {
  final text;
  final pressed;
  final double width;
  final double height;
  const LeftTitleRightImageButton({this.text = '', this.pressed = null, this.width = 80, this.height = 30});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: this.height,
      width: this.width,
      child: Row(
        children: <Widget>[
          FlatButton(
          child: Text(this.text,  style: TextStyle(
              fontSize: 16,
          ),),
          color: Colors.white,
          onPressed: this.pressed
      ),
          Icon(Icons.chevron_right),
        ],
      ),
    );

  }
}